home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 May: Tool Chest / Dev.CD May 97 TC.toast / Sample Code / Development Tools & Languages / AppsToGo / •AppsToGo Reference / •AppsToGo Reference.rsrc / WFMT_585_a2A7 < prev    next >
Unknown  |  1994-09-22  |  1.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file TTComp archive data, binary, 2K dictionary default (weak)
99% file data default
100% TrID TTComp archive compressed (bin-2K) default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 00 01 00 00 00 1a | 00 00 00 00 00 00 00 1a |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 05 00 00 |........|........|
|00000030| 00 22 00 00 00 00 00 00 | 00 22 61 32 41 37 00 00 |."......|."a2A7..|
|00000040| 4e 16 00 00 20 19 00 00 | 00 00 00 00 00 00 00 00 |N... ...|........|
|00000050| 00 00 08 50 75 74 43 44 | 61 74 61 00 00 06 00 00 |...PutCD|ata.....|
|00000060| 00 00 00 94 00 00 00 00 | 00 00 00 94 00 00 00 14 |........|........|
|00000070| 03 c1 00 28 05 7e 00 ff | 00 00 00 00 00 00 0f a8 |...(.~..|........|
|00000080| 00 00 00 00 4e 1c 00 00 | 00 09 00 00 00 04 00 04 |....N...|........|
|00000090| ff fc ff fa 00 04 00 04 | ff fc ff fc 00 00 00 00 |........|........|
|000000a0| 00 00 00 00 83 00 0b 40 | 10 6b 53 63 72 65 65 6e |.......@|.kScreen|
|000000b0| 41 50 49 2f 31 39 39 39 | 36 00 06 47 65 6e 65 76 |API/1999|6..Genev|
|000000c0| 61 00 00 3a 4f 53 45 72 | 72 20 50 75 74 43 44 61 |a..:OSEr|r PutCDa|
|000000d0| 74 61 28 54 72 65 65 4f | 62 6a 48 6e 64 6c 20 68 |ta(TreeO|bjHndl h|
|000000e0| 6e 64 6c 2c 20 6c 6f 6e | 67 20 6f 66 66 73 65 74 |ndl, lon|g offset|
|000000f0| 2c 20 63 68 61 72 20 2a | 64 61 74 61 29 3b 00 00 |, char *|data);..|
|00000100| 00 06 00 00 00 00 00 a6 | 00 00 00 00 00 00 00 a6 |........|........|
|00000110| 00 00 00 00 03 c1 00 14 | 05 7e 00 ff 00 00 00 00 |........|.~......|
|00000120| 00 00 0f a8 00 00 00 00 | 4e 1d 00 00 00 09 00 00 |........|N.......|
|00000130| 00 04 00 04 ff fc ff fa | 00 04 00 04 ff fc ff fc |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 83 00 0b 40 14 6b 53 63 |........|...@.kSc|
|00000150| 72 65 65 6e 4f 6e 65 4c | 69 6e 65 2f 31 39 39 39 |reenOneL|ine/1999|
|00000160| 37 00 06 47 65 6e 65 76 | 61 00 00 48 47 69 76 65 |7..Genev|a..HGive|
|00000170| 6e 20 61 6e 20 6f 66 66 | 73 65 74 20 69 6e 20 74 |n an off|set in t|
|00000180| 68 65 20 6f 62 6a 65 63 | 74 27 73 20 64 61 74 61 |he objec|t's data|
|00000190| 2c 20 72 65 70 6c 61 63 | 65 20 74 68 65 20 6f 6c |, replac|e the ol|
|000001a0| 64 20 30 2d 74 65 72 6d | 69 6e 61 74 65 64 20 64 |d 0-term|inated d|
|000001b0| 61 74 61 2e 00 00 00 06 | 00 00 00 00 00 44 00 00 |ata.....|.....D..|
|000001c0| 00 00 00 00 00 44 00 00 | 00 00 02 6b 04 40 02 6c |.....D..|...k.@.l|
|000001d0| 01 00 00 00 00 00 00 01 | 0f f1 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 0c 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 06 00 00 00 00 |........|........|
|00000210| 00 8c 00 00 00 00 00 00 | 00 8c 00 00 00 00 02 6b |........|.......k|
|00000220| 02 28 03 c1 00 ff 00 00 | 00 00 00 00 0f a8 00 00 |.(......|........|
|00000230| 00 00 4e 16 00 00 00 09 | 00 00 00 04 00 04 ff fc |..N.....|........|
|00000240| ff fa 00 04 00 04 ff fc | ff fc 00 00 00 00 00 00 |........|........|
|00000250| 00 00 83 00 0b 40 0b 6c | 69 6e 6b 73 2f 31 39 39 |.....@.l|inks/199|
|00000260| 39 30 00 06 4d 6f 6e 61 | 63 6f 00 00 21 61 32 30 |90..Mona|co..!a20|
|00000270| 34 2c 47 65 74 43 44 61 | 74 61 0d 61 32 31 30 2c |4,GetCDa|ta.a210,|
|00000280| 47 65 74 44 61 74 61 4f | 66 66 73 65 74 0d 00 16 |GetDataO|ffset...|
|00000290| 00 01 00 00 00 00 00 10 | 00 0c 00 01 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 06 | 00 00 00 00 05 06 00 00 |........|........|
|000002b0| 00 00 00 00 05 06 00 00 | 00 00 00 00 75 30 02 6b |........|....u0.k|
|000002c0| 01 ff 00 00 00 00 00 00 | 0f a8 00 00 00 00 4e 1f |........|......N.|
|000002d0| 00 00 00 09 00 00 00 04 | 00 04 ff fc ff fa 00 04 |........|........|
|000002e0| 00 04 ff fc ff fc 00 00 | 00 00 00 00 00 00 83 00 |........|........|
|000002f0| 0b 40 0a 62 6f 64 79 2f | 31 39 39 39 39 00 06 4d |.@.body/|19999..M|
|00000300| 6f 6e 61 63 6f 00 03 fc | 4f 53 45 72 72 20 50 75 |onaco...|OSErr Pu|
|00000310| 74 43 44 61 74 61 28 54 | 72 65 65 4f 62 6a 48 6e |tCData(T|reeObjHn|
|00000320| 64 6c 20 68 6e 64 6c 2c | 20 6c 6f 6e 67 20 6f 66 |dl hndl,| long of|
|00000330| 66 73 65 74 2c 20 63 68 | 61 72 20 2a 64 61 74 61 |fset, ch|ar *data|
|00000340| 29 3b 0d 0d 20 20 20 20 | 46 69 6c 65 3a 20 54 72 |);.. |File: Tr|
|00000350| 65 65 4f 62 6a 2e 68 0d | 0d 49 4e 50 55 54 3a 20 |eeObj.h.|.INPUT: |
|00000360| 20 68 6e 64 6c 20 20 20 | 20 20 20 20 20 4f 62 6a | hndl | Obj|
|00000370| 65 63 74 20 74 6f 20 73 | 74 6f 72 65 20 64 61 74 |ect to s|tore dat|
|00000380| 61 2e 0d 20 20 20 20 20 | 20 20 20 6f 66 66 73 65 |a.. | offse|
|00000390| 74 20 20 20 20 20 20 4f | 66 66 73 65 74 20 69 6e |t O|ffset in|
|000003a0| 74 6f 20 74 68 65 20 64 | 61 74 61 20 61 72 65 61 |to the d|ata area|
|000003b0| 20 6f 66 20 74 68 65 20 | 6f 62 6a 65 63 74 2e 0d | of the |object..|
|000003c0| 20 20 20 20 20 20 20 20 | 64 61 74 61 20 20 20 20 | |data |
|000003d0| 20 20 20 20 50 6f 69 6e | 74 65 72 20 74 6f 20 74 | Poin|ter to t|
|000003e0| 68 65 20 64 61 74 61 20 | 74 6f 20 73 61 76 65 2e |he data |to save.|
|000003f0| 0d 52 45 53 55 4c 54 3a | 20 4f 53 45 72 72 20 20 |.RESULT:| OSErr |
|00000400| 20 20 20 20 20 4d 6f 73 | 74 20 6c 69 6b 65 6c 79 | Mos|t likely|
|00000410| 20 65 72 72 6f 72 20 69 | 73 20 6d 65 6d 46 75 6c | error i|s memFul|
|00000420| 6c 45 72 72 2e 0d 0d 54 | 68 69 73 20 69 73 20 75 |lErr...T|his is u|
|00000430| 73 65 64 20 74 6f 20 73 | 61 76 65 20 30 2d 74 65 |sed to s|ave 0-te|
|00000440| 72 6d 69 6e 61 74 65 64 | 20 64 61 74 61 20 69 6e |rminated| data in|
|00000450| 74 6f 20 61 6e 20 6f 62 | 6a 65 63 74 2c 20 67 69 |to an ob|ject, gi|
|00000460| 76 65 6e 20 74 68 65 20 | 6f 66 66 73 65 74 20 6f |ven the |offset o|
|00000470| 66 20 74 68 65 20 64 61 | 74 61 2e 0d 54 68 65 20 |f the da|ta..The |
|00000480| 6f 66 66 73 65 74 20 6d | 75 73 74 20 72 65 66 65 |offset m|ust refe|
|00000490| 72 65 6e 63 65 20 61 20 | 30 2d 74 65 72 6d 69 6e |rence a |0-termin|
|000004a0| 61 74 65 64 20 64 61 74 | 61 20 6c 6f 63 61 74 69 |ated dat|a locati|
|000004b0| 6f 6e 2c 20 73 69 6e 63 | 65 20 74 68 69 73 20 6f |on, sinc|e this o|
|000004c0| 70 65 72 61 74 69 6f 6e | 20 77 69 6c 6c 0d 72 65 |peration| will.re|
|000004d0| 70 6c 61 63 65 20 74 68 | 65 20 70 72 65 76 69 6f |place th|e previo|
|000004e0| 75 73 20 30 2d 74 65 72 | 6d 69 6e 61 74 65 64 20 |us 0-ter|minated |
|000004f0| 64 61 74 61 20 65 6c 65 | 6d 65 6e 74 2e 0d 0d 54 |data ele|ment...T|
|00000500| 68 65 20 6f 66 66 73 65 | 74 20 69 73 20 67 65 6e |he offse|t is gen|
|00000510| 65 72 61 6c 6c 79 20 67 | 6f 74 74 65 6e 20 62 79 |erally g|otten by|
|00000520| 20 63 61 6c 6c 69 6e 67 | 20 47 65 74 44 61 74 61 | calling| GetData|
|00000530| 4f 66 66 73 65 74 20 66 | 6f 72 20 63 6f 6d 70 6c |Offset f|or compl|
|00000540| 65 78 20 64 61 74 61 20 | 74 79 70 65 73 2e 20 20 |ex data |types. |
|00000550| 49 66 20 74 68 65 0d 64 | 61 74 61 20 66 6f 72 20 |If the.d|ata for |
|00000560| 74 68 65 20 6f 62 6a 65 | 63 74 20 69 73 20 61 20 |the obje|ct is a |
|00000570| 73 69 6e 67 6c 65 20 63 | 2d 73 74 72 69 6e 67 20 |single c|-string |
|00000580| 28 6f 72 20 61 20 63 2d | 73 74 72 69 6e 67 20 61 |(or a c-|string a|
|00000590| 74 20 74 68 65 20 65 6e | 64 20 6f 66 20 61 20 66 |t the en|d of a f|
|000005a0| 69 78 65 64 20 62 6c 6f | 63 6b 29 2c 20 74 68 65 |ixed blo|ck), the|
|000005b0| 6e 0d 79 6f 75 20 63 61 | 6e 20 73 69 6d 70 6c 79 |n.you ca|n simply|
|000005c0| 20 75 73 65 20 74 68 65 | 20 6d 61 63 72 6f 20 d2 | use the| macro .|
|000005d0| 6f 66 66 73 65 74 6f 66 | d3 20 74 6f 20 67 65 74 |offsetof|. to get|
|000005e0| 20 74 68 65 20 6f 66 66 | 73 65 74 20 74 6f 20 74 | the off|set to t|
|000005f0| 68 65 20 63 2d 73 74 72 | 69 6e 67 2e 20 20 49 66 |he c-str|ing. If|
|00000600| 20 79 6f 75 20 68 61 76 | 65 0d 6d 75 6c 74 69 70 | you hav|e.multip|
|00000610| 6c 65 20 70 61 63 6b 65 | 64 20 63 2d 73 74 72 69 |le packe|d c-stri|
|00000620| 6e 67 73 2c 20 74 68 65 | 6e 20 79 6f 75 20 6e 65 |ngs, the|n you ne|
|00000630| 65 64 20 74 6f 20 75 73 | 65 20 47 65 74 44 61 74 |ed to us|e GetDat|
|00000640| 61 4f 66 66 73 65 74 20 | 74 6f 20 64 65 74 65 72 |aOffset |to deter|
|00000650| 6d 69 6e 65 20 74 68 65 | 20 6f 66 66 73 65 74 20 |mine the| offset |
|00000660| 66 6f 72 0d 63 2d 73 74 | 72 69 6e 67 73 20 61 66 |for.c-st|rings af|
|00000670| 74 65 72 20 74 68 65 20 | 66 69 72 73 74 2e 20 20 |ter the |first. |
|00000680| 28 54 68 65 20 66 69 72 | 73 74 20 73 74 61 72 74 |(The fir|st start|
|00000690| 73 20 61 74 20 61 20 66 | 69 78 65 64 20 6c 6f 63 |s at a f|ixed loc|
|000006a0| 61 74 69 6f 6e 2c 20 73 | 6f 20 74 68 65 72 65 66 |ation, s|o theref|
|000006b0| 6f 72 65 20 69 74 20 68 | 61 73 0d 61 20 63 6f 6e |ore it h|as.a con|
|000006c0| 73 74 61 6e 74 20 6f 66 | 66 73 65 74 2e 29 0d 0d |stant of|fset.)..|
|000006d0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 0d 0d 41 6c 73 6f |________|__..Also|
|000006e0| 20 73 65 65 3a 20 20 20 | 47 65 74 43 44 61 74 61 | see: |GetCData|
|000006f0| 2c 20 47 65 74 44 61 74 | 61 4f 66 66 73 65 74 2e |, GetDat|aOffset.|
|00000700| 20 0d 0d 0d 00 b6 00 09 | 00 00 00 00 00 0b 00 09 | .......|........|
|00000710| 00 04 00 00 00 09 00 00 | 00 00 00 00 00 00 02 21 |........|.......!|
|00000720| 00 0b 00 09 00 04 05 00 | 00 09 00 00 00 00 00 00 |........|........|
|00000730| 00 00 02 2e 00 0b 00 09 | 00 04 00 00 00 09 00 00 |........|........|
|00000740| 00 00 00 00 00 00 03 32 | 00 0b 00 09 00 04 05 00 |.......2|........|
|00000750| 00 09 00 00 00 00 00 00 | 00 00 03 3f 00 0b 00 09 |........|...?....|
|00000760| 00 04 00 00 00 09 00 00 | 00 00 00 00 00 00 03 e0 |........|........|
|00000770| 00 0b 00 09 00 04 05 00 | 00 09 00 00 00 00 00 00 |........|........|
|00000780| 00 00 03 e8 00 0b 00 09 | 00 04 00 00 00 09 00 00 |........|........|
|00000790| 00 00 00 00 00 00 03 ea | 00 0b 00 09 00 04 05 00 |........|........|
|000007a0| 00 09 00 00 00 00 00 00 | 00 00 03 f7 00 0b 00 09 |........|........|
|000007b0| 00 04 00 00 00 09 00 00 | 00 00 00 00 |........|.... |
+--------+-------------------------+-------------------------+--------+--------+